import Vue from 'vue';
import Router from 'vue-router';
import Login from '@/views/login.vue';
import AppMap from '@/views/appMap.vue';

const routes = [
  //添加了登陆组件的路由配置信息
  {
    path: '/',
    name: 'Login',
    component: Login,
  },
  {
    path: '/mainPage',
    name: 'AppMap',
    component: AppMap,
  },
]

Vue.use(Router)
export default new Router({
  routes,
});